package controllers;

import org.codehaus.jackson.JsonNode;
import org.codehaus.jackson.map.ObjectMapper;
import org.codehaus.jackson.node.ObjectNode;

import play.mvc.Controller;
import play.mvc.Result;

public class PointApi extends Controller {

	public static Result getPoints() {
		ObjectMapper mapper = new ObjectMapper();
		JsonNode rootNode = mapper.createObjectNode();
		((ObjectNode) rootNode).put("name", "Tatu");
		System.out.println(rootNode);
		return ok(rootNode);
	}
}